package com.xx.job.service;

import com.xx.job.common.CommonResult;
import com.xx.job.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "SPRING-CLOUD-PAYMENT")
public interface PaymentService {

    @GetMapping("/payment/selectById/{id}")
    public CommonResult selectById(@PathVariable("id") Long id);

    @GetMapping("/payment/insert")
    public CommonResult insert( Payment payment);

    @GetMapping("/payment/timeOut")
    public CommonResult timeOut();
}
